package org.association.builder_state;

import java.util.ArrayList;

public class Director {
	private ArrayList<String> orderList = new ArrayList<String>();
	private BuilderContext builderContext = new BuilderContext();
	
	
	public Context getABCDA(){		
		this.orderList.clear();
		this.orderList.add("A");
		this.orderList.add("B");
		this.orderList.add("C");
		this.orderList.add("D");
		this.orderList.add("A");
		this.builderContext.setOrderList(orderList);
		return this.builderContext.getContext(Context.CONCRETE_STATE_A);
	}

	public Context getACD(){		
		this.orderList.clear();
		this.orderList.add("A");
		this.orderList.add("C");
		this.orderList.add("D");
		this.builderContext.setOrderList(orderList);
		return this.builderContext.getContext(Context.CONCRETE_STATE_A);
	}
}